package com.consumerfeign.consumerfeign.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author dfj@99chuxing.com
 * @date 2018/4/16 0016 16:29
 */
@FeignClient(value = "PERSON",fallback = FallbackByfeign.class)
@Service
public interface ConsumerInterface {


    @RequestMapping(value = "/demo",method = RequestMethod.GET)
    String sayHiFromClientOne();

}
